package com.kingint.web.admin.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kingint.mbg.ser.entity.SerRoomClean;

/**
 * <p>
 * 客房清洁单 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-30
 */
public interface SerRoomCleanService extends IService<SerRoomClean> {

    /**
     * 添加客房清洁工单
     * @param serRoomClean
     * @return
     */
    String addcleanorder(SerRoomClean serRoomClean);

    /**
     * 接单
     * @return
     */
    Boolean acceptorder(Integer id,Integer checkstate);

    /**
     * 查询对应的详情
     * @param id
     * @return
     */
    SerRoomClean getRoomCleanInfo(Integer id);

    /**
     * 分页
     * @param page
     * @param serRoomClean
     * @return
     */
    IPage<SerRoomClean> getpage(Page<SerRoomClean> page, SerRoomClean serRoomClean);

    /**
     * 获取详情
     * @param id
     * @return
     */
    SerRoomClean getDetailsById(Integer id);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean delete(Integer id);
}
